home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Speccy ClassiX 1998
/
Speccy ClassiX 98.iso
/
amiga_system
/
the_aminet
/
dev
/
gcc
/
ixemulsdk.lha
/
man
/
cat3
/
frexp.0
< prev
next >
Wrap
Text File
|
1992-08-10
|
1KB
|
67 lines
FREXP(3) UNIX Programmer's Manual FREXP(3)
NNAAMMEE
ffrreexxpp - convert floating¡point number to fractional and integral compo¡
nents
SSYYNNOOPPSSIISS
##iinncclluuddee <<mmaatthh..hh>>
_d_o_u_b_l_e
ffrreexxpp(_d_o_u_b_l_e _v_a_l_u_e, _i_n_t _*_e_x_p)
DDEESSCCRRIIPPTTIIOONN
The ffrreexxpp() function breaks a floating¡point number into a normalized
fraction and an integral power of 2. It stores the integer in the _i_n_t
object pointed to by _e_x_p.
RREETTUURRNN VVAALLUUEESS
The ffrreexxpp() function returns the value _x, such that _x is a _d_o_u_b_l_e with
magnitude in the interval [1/2, 1] or zero, and _v_a_l_u_e equals _x times 2
raised to the power _*_e_x_p. If _v_a_l_u_e is zero, both parts of the result are
zero.
SSEEEE AALLSSOO
ldexp(3), modf(3), math(3)
SSTTAANNDDAARRDDSS
The ffrreexxpp() function conforms to ANSI C3.159¡1989 (``ANSI C'').
BSD Experimental June 29, 1991 1